/**
 * Created by wuxue on 2017/6/30.
 */
$(function () {
    var id = $.getUrlParams()['id'];
    $("#prisonerOrderInfo").gridTable({
        url: "orderPrisoner/pageOrderPrisonerDetail",
        columns: [
            {title: "商品图片", field: "img", format: toImg},
            {title: "商品名称", field: "goodsName"},
            {title: "售价", field: "goodsSellPrice", dataType:"decimal"},
            {title: "已收货数量", field: "invoiceCount",dataType:"number"},
            {title: "总数量", field: "goodsCount",dataType:"number"}
        ],
        showControl:false,
        showCheckbox:false,
        onDoubleClickRow: function(){},
        params: {id:id}
    });
});
function toImg(url) {
    return "<img src='"+url+"' width='40' height='40'>";
}